package com.red.springmanual.service;


import com.red.springmanual.spring.*;

@Component("userService")
//@Scope("prototype")
public class UserService implements BeanNameAware, InitializBean,UserInterface {

    @Autowire
    private OrderService orderService;

    private String beanName;


    @Override
    public void test(){
        System.out.println(orderService);
    }


    @Override
    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    @Override
    public void afterPropertiesSet() {
        System.out.println("初始化");
    }
}
